<?xml version="1.0"?>
<!--
  ~ Copyright 2004-2012 ICEsoft Technologies Canada Corp.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the
  ~ License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an "AS
  ~ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  ~ express or implied. See the License for the specific language
  ~ governing permissions and limitations under the License.
  -->

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html" 
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:c="http://java.sun.com/jsp/jstl/core" 
    xmlns:ace="http://www.icefaces.org/icefaces/components" 
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:icecore="http://www.icefaces.org/icefaces/core"
    xmlns:ui="http://java.sun.com/jsf/facelets" 
    template="/resources/templates/content-template.xhtml">
    
    <ui:param name="title" value="#{msgs[tabControl.title]}"/>
    <ui:param name="description" value="#{msgs[tabControl.description]}"/>
    <ui:param name="resourceValue" value="#{tabControl.exampleResource}"/>
    
    <ui:param name="wikiResources" value="#{compatComponentsResources.wikiResources}"/>
    <ui:param name="tldResources" value="#{compatComponentsResources.tldResources}"/>
    
    <ui:define name="example">
        <h:form>
            <icecore:singleSubmit/>
            <h:panelGrid columns="2">
                <h:outputLabel for="indexIn" value="Selected Index:"/>
                <h:selectOneRadio id="indexIn" value="#{tabControl.index}">
                    <f:selectItems value="#{tabControl.availableIndexes}"/>
                </h:selectOneRadio>
            </h:panelGrid>
        </h:form>
        
        <h:form>
            <ice:panelTabSet selectedIndex="#{tabControl.index}">
                <ice:panelTab label="Account">
                      <h:panelGrid columns="2">
                          <h:outputLabel for="firstName" value="First Name:"/>
                          <h:inputText id="firstName"/>
                          
                          <h:outputLabel for="lastName" value="Last Name:"/>
                          <h:inputText id="lastName"/>
                          
                          <h:outputLabel for="address" value="Address:"/>
                          <h:inputText id="address"/>
                          
                          <h:outputLabel for="birthDate" value="Birth Date:"/>
                          <ice:selectInputDate id="birthDate" renderAsPopup="true"/>
                      </h:panelGrid>
                </ice:panelTab>
                
                <ice:panelTab label="Support">
                    <p>ICEfaces 2 is the new version of the ICEfaces framework that integrates with JavaServer Faces (JSF) 2. With ICEfaces 2, our goal is to deliver the highest value existing ICEfaces features, as well as important new enhancements, cleanly integrated into the JSF 2 platform. There are a number of ways to take advantage of ICEfaces 2 in your JSF 2 application:</p>
                    
                    <p>First, add the icefaces.jar to your project. This immediately allows you to take advantage of Direct-to-DOM (D2D) rendering technology. D2D only sends browser DOM changes from the server to the browser, minimizing bandwidth consumption without the need to specify the new "f:ajax" component in your pages. Once the icefaces.jar is added to your project, you can also take advantage of ICEfaces Window Scope and Single Submit features.</p>
                </ice:panelTab>
                
                <ice:panelTab label="Forum">
                    <h:panelGrid columns="3" width="100%"
                                 columnClasses="col25,col50,col25"
                                 border="1">
                        <h:outputText value="General Help"
                                      style="font-weight: bold;"/>
                        <h:outputText value="Component Suite Best Practice for New Development with 2.0"
                                      style="text-decoration: underline;"/>
                        <h:outputText value="by Admin"/>
                        
                        <h:outputText value="General Help"
                                      style="font-weight: bold;"/>
                        <h:outputText value="Dynamic Menu+Action listener"
                                      style="text-decoration: underline;"/>
                        <h:outputText value="by Kirss"/>

                        <h:outputText value="Components"
                                      style="font-weight: bold;"/>
                        <h:outputText value="How to show modal page during loading datable?"
                                      style="text-decoration: underline;"/>
                        <h:outputText value="by Daviso"/>

                        <h:outputText value="Tools"
                                      style="font-weight: bold;"/>
                        <h:outputText value="ICEfaces 2 and RAD 8.0.1"
                                      style="text-decoration: underline;"/>
                        <h:outputText value="by Ned"/>
                        
                        <h:outputText value="Developer Builds"
                                      style="font-weight: bold;"/>
                        <h:outputText value="General steps to build a blank IceFaces2.0 project..."
                                      style="text-decoration: underline;"/>
                        <h:outputText value="by Caren"/>
                    </h:panelGrid>
                </ice:panelTab>
            </ice:panelTabSet>
        </h:form>
    </ui:define>
</ui:composition>
